<#include "../../../common/_header.htm">
<script src="${ctx}/plugins/d3/js_re/D3ForceService.js"></script>
<div id="hidebox" style="height:100%;width:100%">
</div>
<script>
	var d3view = new d3ForceService();
	var dialog = top.dialog.get(window);
    var data = dialog.data; // 获取对话框传递过来的数据
    console.log(data);
	$.ajax({
		url: data.reqUrl,
		contentType: "application/json;charset=UTF-8",
        dataType:'json',
	    type: 'post',
	    async:true,
	    data : JSON.stringify(data),
	    success:function (obj) {
	    	console.log(obj);
	    	d3view.init(obj.data.nodes,obj.data.links,"#hidebox");
	    }
	});
	$(document).on("click",".d3-button",function(){
		d3view.level1.min=Number($("#level1min").val());
		d3view.level1.max=Number($("#level1max").val());
		d3view.level2.min=Number($("#level2min").val());
		d3view.refresh();
	})
</script>

<style>
	#hidebox {
		top: 23px;
		left: 2%;
		border-radius: 5px;
		background-color:#fff;
		z-Index:9999;
		padding: 10px;
		overflow:hidden;
	}
</style>
</body>
</html>